<?php
/* @var $this PromotionController */

$this->pageTitle=Yii::app()->name . ' - Khuyến mãi';
$this->breadcrumbs=array(
	'Khuyến mãi',
);
$count = $model->count('IsActive = 1 AND art_cat_id = 3');
$pages = new CPagination($count);
$pages->pageSize = 2;
$pages->route = '/khuyen-mai';
?>
<div  id="<?php echo $this->id . '-' . $this->action->id?>" class="main-content">
   <ul class="list-promotion">
      <?php 
         if(count($list) >0){
            foreach($list as $item){?>
               <li class="promotion-item">
                  <div class="left image">           
                     <img src="<?php echo Yii::app()->request->baseUrl?>/images/article/<?php echo $item['art_image']?>" />
                  </div>
                  <div class="text">
                     <h3 class="title"><?php echo $item['art_title']?></h3>
                     <div class="description">
                        <?php echo $item['art_content']?>
                     </div>
                  </div>
               </li>
            <?php }
         }
      ?>
   </ul>
   
   <?php $this->widget('CLinkPager', array(
    'pages' => $pages,
    'header' => '',
    'nextPageLabel' => 'Sau',
    'prevPageLabel' => 'Trước',
   )) ?>
</div>
